<?php
class styleFile extends elementInner
{
    public function styleFile($href, $rel='stylesheet' , $type='text/css', $media='screen')
    {
        parent::element('style');
        $this->addAttribute('type', $type);
        $this->addAttribute('media', $media);
        //$this->addAttribute('rel', $rel); //before (link)
        //$this->addAttribute('href', $href); //before
        $this->addInner('@import url('.$href.');');
    }

    public function __toString()
    {
        //return parent::__toString('link'); //before
        return parent::__toString( false);
    }
}
?>
